Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Fix: Add parameter type annotations to the AST (refs #105) #111

Merged
merged 1 commit into from
Nov 4, 2016

Conversation

JamesHenry
Copy link
Member

It turns out we were never actually adding the type annotations of function parameters to the final AST. The tokens were tracked, and so this was not having any adverse effects, but it means we were lacking some information that would be needed for future rules and assertions for the TS 2.x special "typed-this" parameter.

Once this PR goes in the final TS 2.x PR (relating to that typed-this assertion) is ready to go and we can ship our first TS 2 release :shipit:

I am sorry about the large diff, given that this is a change which affects any typed function parameters it affects 11-12 different test cases.

I have traditionally reconciled things like this by hand to minimise the noise, but I did actually run your node tools/update-typescript-tests.js helper this time and it seems to have switched around the order of some things in the resulting AST.

@jsf-clabot
Copy link

jsf-clabot commented Nov 3, 2016

CLA assistant check
All committers have signed the CLA.

@eslintbot
Copy link

LGTM

@JamesHenry JamesHenry mentioned this pull request Nov 3, 2016
10 tasks
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nzakas nzakas merged commit 172eb96 into ts-2 Nov 4, 2016
@JamesHenry JamesHenry deleted the parameter-type-annotations branch November 5, 2016 16:01
nzakas pushed a commit that referenced this pull request Nov 8, 2016
* Breaking: Updated TypeScript peerDependency to ^2.0.3 (refs #105)

* Chore: Added test for shorthand-ambient-module-declaration (refs #105) (#109)

* Chore: Added test for non-null assertion operator (refs #105) (#110)

* Breaking: Update JSX tagName conversion for TS 2 (refs #105) (#108)

* Chore: Added test for typed this parameter (fixes #105)

* Fix: Add parameter type annotations to the AST (refs #105) (#111)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants